package com.zhuanzhuan.hero.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuanzhuan.hero.user.entity.HeroUserReliableRecord;
import com.zhuanzhuan.hero.user.pojo.bo.CreateReliableRecordBO;

import javax.annotation.Nullable;
import java.util.List;

/**
 * dal Interface:HeroUserReliableRecord
 * @author hanjunjun
 * @date 2024-7-5
 */
public interface HeroUserReliableRecordService extends IService<HeroUserReliableRecord> {

    /**
     * 查询
     *
     * @param fromUid 可以为空
     * @param toUid
     * @param reliableType
     * @param operateType
     * @return java.util.List<com.zhuanzhuan.hero.user.entity.HeroUserReliableRecord>
     * @author  hanjunjun
     * @date 2024/7/5
     **/
    List<HeroUserReliableRecord> queryByParam(@Nullable Long fromUid, Long toUid, Integer reliableType, Integer operateType);

    /**
     * 保存
     *
     * @param saveBo
     * @return void
     * @author  hanjunjun
     * @date 2024/7/5
     **/
    HeroUserReliableRecord insert(CreateReliableRecordBO saveBo);

    /**
     * 不靠谱认证风控失败  理由、图片
     *
     * @param authRecordId
     * @param rejectedFields
     * @return boolean
     * @author  hanjunjun
     * @date 2024/7/11
     **/
    boolean unreliableAuthRiskcontrolFail(Long authRecordId, List<String> rejectedFields);

    void delById(Long id);

    HeroUserReliableRecord queryById(Long id);
}